[Backport] Set fallback values for email and _website columns to avoid 'undefined index' error in CustomerComposite.php#18681
[Backport] Set fallback values for email and _website columns to avoid 'undefined index' error in CustomerComposite.php#18681magento-engcom-team merged 1 commit intomagento:2.2-developfrom TomashKhamlai:fix-undefined-index-in-customer-composite-php-backport
Conversation
…d index' error in CustomerComposite.php
|
Hi @TomashKhamlai. Thank you for your contribution
For more details, please, review the Magento Contributor Assistant documentation |
|
@magento-engcom-team give me 2.3-develop instance |
|
Hi @rogyar. Thank you for your request. I'm working on Magento 2.3-develop instance for you |
|
Hi @rogyar, here is your Magento instance. |
|
Hi @TomashKhamlai. Thank you for your contribution. Please, consider to port this solution to 2.3 release line. |
Original Pull Request
#18679
Description
There are proper validation messages for
ERROR_CODE_COLUMN_NOT_FOUNDandERROR_CODE_COLUMN_NAME_INVALIDbut this code is not reachable.Manual testing scenarios
Expected result:
At least one of the two validation messages:
We can't find required columns: email", "_website.Column names: "ID", "Name", "Email", "Group", "Phone", "ZIP", "Country", "State/Province", "Customer Since", "Web Site", "Confirmed email", "Account Created in", "Billing Address", "Shipping Address", "Date of Birth", "Tax VAT Number", "Gender", "Street Address", "City", "Fax", "VAT Number", "Company", "Billing Firstname", "Billing Lastname", "Account Lock" are invalidActual result:
Notice: Undefined index: email in /var/www/html/pr/app/code/Magento/CustomerImportExport/Model/Import/CustomerComposite.php on line 302Contribution checklist